package com.wantup.miaosha.entity;

import java.io.Serializable;
import java.math.BigDecimal;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 赵洛伟
 * @since 2019-06-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TblGoods extends Model<TblGoods> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    public Integer id;
    /**
     * 商品名称
     */
    @TableField("goodsName")
    public String goodsName;
    /**
     * 商品标题
     */
    @TableField("goodsTitle")
    public String goodsTitle;
    /**
     * 商品图片
     */
    @TableField("goodsImg")
    public String goodsImg;
    /**
     * 商品详情
     */
    @TableField("goodsDetail")
    public String goodsDetail;
    /**
     * 商品价格
     */
    @TableField("goodsPrice")
    public BigDecimal goodsPrice;
    /**
     * 商品库存，-1表示没有限制
     */
    @TableField("goodsStock")
    public Integer goodsStock;


    public static final String ID = "id";

    public static final String GOODSNAME = "goodsName";

    public static final String GOODSTITLE = "goodsTitle";

    public static final String GOODSIMG = "goodsImg";

    public static final String GOODSDETAIL = "goodsDetail";

    public static final String GOODSPRICE = "goodsPrice";

    public static final String GOODSSTOCK = "goodsStock";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
